<template>
    <div class="app-container">
      <el-timeline>
        <el-timeline-item :timestamp="item.createTime" placement="top" v-for="(item,index) in list" :key="index">
          <el-card>
            <div>{{item.remark}}</div>
            <div style="color: #909399">操作人:{{item.createName}}</div>
          </el-card>
        </el-timeline-item>
      </el-timeline>
    </div>
</template>

<script>
import * as api from '@/api/order/index'

export default {
    props: ['orderNo','type'],
    data() {
        return {
            list: [],
            queryParams: {
                pageNum: 0,//页码   必选
                pageSize: 10,//每页显示数据 必选
            },
            total: 0,
        };
    },
  // watch:{
  //   orderNo:{
  //     handler(val) {
  //       this.getList()
  //     }
  //   }
  // },
  mounted() {
    this.getList();
  },
    methods: {
        getList() {
            api.operationLog({
                ...this.queryParams,
                bizNo: this.orderNo,
                type: this.type,
                binzo: this.orderNo,
            }).then(response => {
                this.list = response.rows || [];
            });
        },
    },
}
</script>
